// components/commodity_list/commodity_list.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    orderOnlyInfos:{
      type:Object,
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    orderOnlyInfo:[{cName:'广州大锅巴1',payNumber:5,price:1.95,oPrice:2.5,dt:7.8,imageUrl:'../../images/1.jpg',payMoney:9.75},
    {cName:'广州大锅巴2',payNumber:2,price:3,oPrice:3,dt:0,imageUrl:'../../images/1.jpg',payMoney:6},
    {cName:'广州大锅巴3',payNumber:5,price:4.25,oPrice:5,dt:8.5,imageUrl:'../../images/1.jpg',payMoney:21.25},
    {cName:'广州大锅巴4',payNumber:3,price:1.30,oPrice:2,dt:6.5,imageUrl:'../../images/1.jpg',payMoney:3.9},
    {cName:'广州大锅巴5',payNumber:7,price:5.7,oPrice:6,dt:9.5,imageUrl:'../../images/1.jpg',payMoney:39.9},
    {cName:'广州大锅巴6',payNumber:1,price:6,oPrice:8,dt:7.5,imageUrl:'../../images/1.jpg',payMoney:6},
  ]
  },

  /**
   * 组件的方法列表
   */
  observers:{
    'orderOnlyInfos': function (value) {
      this.setData({orderOnlyInfo:value});
    }
  },
  methods: {

  }
})
